newBuilder

open fun newBuilder(domain: String): Cookie.Builder

Creates a new Cookie builder.

Return

a new Cookie.Builder instance

Parameters

domain

a domain this cookie belongs to. Please note, the domain is also required for cookies with __Host prefix.

Throws

if the domain is blank or empty